<?php


abstract class Profile {
	static function getProfile($userId){
		$user = new User($userId);
		$profile = null;
		if($user->type == User::$rolePerson) {
			$profile = new PersonProfileInfo( $user->attributes->profileInfoId );
		} else if ($user->type == User::$roleCompany){
			$profile = new CompanyProfileInfo( $user->attributes->profileInfoId );
		}
		return $profile;
	}
	
	static function getInterestsList(){
		return array(
			"1" => "Bares y restaurantes",
			"2" => "Heladerías y Cafés",
			"3" => "Salud y belleza",
			"4" => "Viajes y turismo",
			"5" => "Teatros",
			"6" => "Cines",
			"7" => "Deportes",
			"8" => "Tecnología",
			"9" => "Indumentaria y calzados",
			"10" => "Mascotas",
			"11" => "Vehículos",
			"12" => "Cursos y aprendizaje",
			"13" => "Universidades",
			"14" => "Librerías"
		);	
	}
	
	abstract function update();
}